SQL Table Editor
This component displays a grid linked to a SQL table, and the contents of the table are shown in the grid. The settings in the object determine whether the grid allows changes to the table data.
Formatting and Action
See Component Formatting and Action Properties and Component Display Format Properties.
SQL Table Editor
Database Location
Select a database location. You can choose from the following options:
-
Application: Select this if the table to be displayed is located in the application database.
-
Framework: Select this if the table to be displayed is located in the framework database.
-
External: Select this if the table to be displayed is located in an external database.
External Database Connection
Select to enable connection to an external database. This property is only enabled if the Database Location property is set to External.
Table Name
The name of the table being displayed in the component.
Table Column Names
A comma-separated list of database table column names you can use in the SQL Select statement. Only the entered columns are displayed in the component. This property is optional.
NOTE: If editing existing data or adding new rows is enabled, any columns that exist in the underlying database table are excluded from the list. This property must have default constraints set in the database table.
Where Clause
The SQL string where clause used to pull data from the table.
Order By Clause
The SQL string to order the results of the table.
NOTE: The Order By Clause property does not allow SQL Functions like YEAR(effectiveDate). When run inside a dashboard, the Table Editor columns allow you to select a heading to change the order to ascending, descending, or no sort. SQL functions cannot be allowed in the ordering.
Filter Mode
The SQL Table Editor enables you to filter results using Filter Mode. This filtering mode is built into the header cell of each filterable column. It is simpler to use than pop-up mode, which is an alternative filtering mode, and uses only one field editor to filter. All filters start as empty until a value is entered into the editor.
Default for Columns Are Visible
When set to True, all columns are hidden unless overridden on an individual column.
Show Title Header
This property enables you to show or hide the entire bar including the items within the bar. When this property is set to False, the Show Title and Show Deselect All Button properties are turned off.
Default For Allow Column Updates
When set to True, the data in the existing table can be modified. When set to False, it cannot be modified.
Show Title
Show or Hide the text in the Title Header.
Show Column Settings Button
When set to True, this shows the Column Settings button, which enables users to reorder and set visibility of columns. When set to False, the Column Settings button is hidden.
Show Deselect All Button
Shows or Hides the Deselect All button, which enables the user to deselect all rows.
Process Selection Changed For Inserts
When both this property and the Allow Inserts property are set to True, they enable the Insert button to process the selection changed event, which is often configured to refresh a portion of the dashboard. When set to False, it will not allow the Insert button to process the selection changed event.
Allow Inserts
When set to True, new rows of data can be added to existing data in the table. When set to False, new rows cannot be added.
Allow Deletes
When set to True, rows of data can be deleted from the existing data in the table. When set to False, rows cannot be deleted.
Retain Table Column Order
When set to True, the column order can be changed through the SQL Table Editor Column Format properties. When set to False, the order cannot be changed.
Read Only Text Color
This field sets the default color to standard black text. The setting can be changed to any color including a system color, for example, XFReadOnlyText.
Column Name for Bound Parameter
Specify the name of the database column to use to change the value of the Bound parameter when a database row is selected. This is used when a SQL Table Editor is being used to affect the display of other components, for example, when showing detailed information for the selected row.
Allow Multiselect
When set to True, the multiple selection of records is enabled by item selection or by using a selection checkbox. The active selected items are passed to the defined Bound parameter field as a comma-delimited list. The Bound parameter format will be: Item1, Item2, Item3. If the 3 values A, B, C,D are selected, where C,D is one value, the resulting bound parameter string is A, B, "C,D". When set to False, only a single Bound parameter can be passed at a time, and the selection boxes are deactivated from the user interface. See SQL Table Editor Multiselect.
Rows Per Page
Specify how many rows to display before a page break. This is a numeric value between 1 and 3000. By default, this property is set to -1, which turns off the property and uses the defined user preference property Grid Rows Per Page. Any value greater than 3000 results in a maximum value of 3000.
Save State
When set to True, user settings on the component are retained. User preferences for columns saved are for Order, Visibility, Filtering, Freeze Bar, Sorting, and Widths.
NOTE: To reset Save State back to default, right-click on the dashboard to enable the Reset State to return back to its Component Properties settings.
Vary Save State By
Use this property to apply Vary Save State By to Workflow Profile settings and scenario. The current Save State elements have the control state tied to the current Workflow Profile and Workflow Scenario settings. If you select False or Use Default, Vary Save State By will not apply. When Vary Save State By is enabled, the related component has the additional reset option of Reset All States, which can be used to clear the user's Save States across all the Vary Save State By parameters.
Show Data Manipulation Buttons
Use this property to show or hide the following buttons: Insert Rows, Delete Rows, Cancel All Changes Since Last Save, and Save.
Show Add Row Button
Hide or show the Add Row button.
Show Remove Row Button
Hide or show the Remove Row button.
Show Cancel Button
Hide or show the Cancel button.
Show Save Button
Hide or show the Save button.
Create Table If Necessary
The option to create the table if it does not already exist.
Table Creation Script
The SQL script to create the new table.
Save Data Server Task
You can choose from the following Server Task options:
-
No Task: There is not a performed task for a SQL table save data event.
-
Execute Dashboard Extender Business Rule: This will use a Dashboard Extender business rule to perform a save data event.
Save Data Server Task Arguments
Enter the arguments required by the server task, for example, {Business Rule Name}{Function Name}{Optional Name-Value Pairs}.
TIP: The data will wrap on string spacing. If there are no blank spaces, the column data will not wrap. Additionally, keyed fields cannot be wrapped.
DataFormatString
Specify a number/date format to the data in the column. For example, mm/dd/yyyy will return the current month/day/year using a slash. mm-dd-yyyy will return the month-day-year using a dash. N0 will return a number without a decimal point, and #,###,0 will return a number without a decimal point and a comma depicting the thousandth place.
Width
This specifies the default column width to be displayed.
SQL Table Editor Column Format
ColumnName
The column name from the table where the selected formatting is to be applied. The specified name must match the column name from the table exactly.
Description
The column description to be displayed. By default, the column name from the table is displayed.
Column Display Type
You can choose from the following options:
-
Standard: This displays the default data in the column.
-
OneStreamClientImage: This replaces the data in the column with the associated image.
-
WorkflowStatusImage: This replaces the data in the column with the associated workflow status indicator image.
IsVisible
This setting overrides the default Columns Visible setting. The options are True, False, or Use Default
AllowUpdates
This a setting overrides the Default For Allow Column Updates setting for each individual column. When set to True, users can modify data displayed in the grid. The Use Default setting uses the Default For Allow Column Updates setting.
ParameterName
The assigned parameter name to be used to store the parameter value from the specified column.
DefaultValue
The default value to be entered when allowing new records to be added. This helps ensure that blank cells that are not valid are not created.
IsMultilineText
When set to True, this enables columns to display data on multiple rows if the column is not wide enough to display the full value.
Primary Key Behavior
If the database table has a primary key, the SQL Table Editor component handles that column differently than the other columns, regardless of the component's other property settings.
-
The Unique Row ID column is always included in the grid results, even if it is not listed in Table Column Names.
-
A primary key column cannot be edited on existing rows. However, the primary key cell is editable on the insert row.
-
If the primary key value is calculated in the database, for example, a uniqueidentifier column with a default of newid(), the calculation runs when the row is saved. The value entered in the grid is replaced with the value generated by the database. If a save fails, the inserted row remains and a notification displays explaining the adjustment needed.